package com.smart.manager.system.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.common.entities.domain.Address;
import com.smart.manager.system.entities.enums.OrganQuality;
import io.ebean.annotation.DbJson;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;

/**
 * 系统管理-机构管理
 *
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class SystemOrgan extends BaseLongModel {


    @ApiModelProperty("机构代码")
    private String code;

    @ApiModelProperty("上级机构代码")
    private String parentCode;


    @ApiModelProperty("机构名称")
    private String name;


    @ApiModelProperty("机构全称")
    private String fullName;


    @ApiModelProperty("机构地址")
    @DbJson
    private Address address;


    @ApiModelProperty("显示排序")
    private Integer sort;


    @ApiModelProperty("机构性质")
    private OrganQuality quality;


    @ApiModelProperty("值班电话")
    private String tel;


}
